﻿using System;
using UnityEngine;
using UnityEngine.EventSystems;

// Token: 0x020003B7 RID: 951
public class OverlapSwitch : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IEventSystemHandler
{
	// Token: 0x060017B2 RID: 6066 RVA: 0x0009C768 File Offset: 0x0009A968
	private void OnEnable()
	{
		this.target.SetActive(false);
	}

	// Token: 0x060017B3 RID: 6067 RVA: 0x0009C778 File Offset: 0x0009A978
	private void OnDisable()
	{
		this.target.SetActive(false);
	}

	// Token: 0x060017B4 RID: 6068 RVA: 0x0009C788 File Offset: 0x0009A988
	public void OnPointerEnter(PointerEventData data)
	{
		this.target.SetActive(true);
	}

	// Token: 0x060017B5 RID: 6069 RVA: 0x0009C798 File Offset: 0x0009A998
	public void OnPointerExit(PointerEventData data)
	{
		this.target.SetActive(false);
	}

	// Token: 0x04001B3E RID: 6974
	[SerializeField]
	private GameObject target;
}
